﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Custom/CustomPage.Master" CodeBehind="Custom_Modify.aspx.cs" Inherits="WebUI.Custom.Custom_Modify" %>

<asp:Content ID ="Content1" ContentPlaceHolderID ="ContentPlaceHolder1" runat="server">
    <table>
        <tr>
            <td style="width: 106px">
                客户编号：</td>
            <td style="width: 91px; text-align: left">
                <asp:Label ID="labCustomSn" runat="server" ForeColor="#404040"></asp:Label>
                </td>
        </tr>
        <tr>
            <td style="width: 106px; height: 2px;">
                客户姓名：</td>
            <td style="width: 91px; height: 2px; text-align: left;">
                <asp:TextBox ID="txtPersonName" runat="server" ReadOnly="True" ForeColor="#404040"></asp:TextBox>
                </td>
             <td style="text-align:left; height: 2px;"><asp:RequiredFieldValidator ID="RFdValidatorPersonName" runat="server" ControlToValidate="txtPersonName"
                    ErrorMessage="*">请输入姓名</asp:RequiredFieldValidator></td>
        </tr>
        <tr>
            <td style="width: 106px">
                所在公司：</td>
            <td style="width: 91px; text-align: left">
                <asp:TextBox ID="txtDepartment" runat="server" ForeColor="#404040"></asp:TextBox>
                </td>
                <td style="text-align:left;"><asp:RequiredFieldValidator ID="RFValidatorDepartment" runat="server" ControlToValidate="txtDepartment"
                    ErrorMessage="*">请输入所在公司</asp:RequiredFieldValidator></td>
        </tr>
        <tr>
            <td style="width: 106px">
                联系电话：</td>
            <td style="width: 91px; text-align: left;">
                <asp:TextBox ID="txtTel" runat="server" ForeColor="#404040"></asp:TextBox>
                </td>
                  <td style="text-align:left;"><asp:RequiredFieldValidator ID="RFValidatorTel" runat="server" ControlToValidate="txtTel"
                    ErrorMessage="*">请输入联系电话</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="REValidatorTel" runat="server" ControlToValidate="txtTel"
                    ErrorMessage="*" ValidationExpression="^(0[0-9]{2,3}\-)?([2-9][0-9]{6,7})+(\-[0-9]{1,4})?$">区号-号码</asp:RegularExpressionValidator></td>
        </tr>
        <tr>
            <td style="width: 106px">
                联系地址：</td>
            <td style="width: 91px; text-align: left;">
                <asp:TextBox ID="txtAddress" runat="server" ForeColor="#404040"></asp:TextBox>
                </td>
                    <td style="text-align:left;"><asp:RequiredFieldValidator ID="RFValidatorAddress" runat="server" ControlToValidate="txtAddress"
                    ErrorMessage="*">请输入联系地址</asp:RequiredFieldValidator></td>
        </tr>
        <tr>
            <td style="width: 106px">
                电子邮箱：</td>
            <td style="width: 91px; text-align: left">
                <asp:TextBox ID="txtEmail" runat="server" ForeColor="#404040"></asp:TextBox>
        </td>
               
                <td style="text-align:left;"><asp:RequiredFieldValidator ID="RFValidatorEmail" runat="server" ControlToValidate="txtEmail"
                    ErrorMessage="*">请输入电子邮箱</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="REValidatorEmail" runat="server" ControlToValidate="txtEmail"
                ErrorMessage="*" ValidationExpression="^[\w-\.]{2,25}\@[\w-]{2,35}(?:(?:\.(?:com|org|gov)(?=\.cn))|(?:\.[a-z]{2}(?=\.cn))|(?:\.(?:net)(?!\.)))?\.(?:com|cn|mobi|tel|asia|net|org|name|me|tv|cc|hk|biz|info)$">请输入电子邮箱</asp:RegularExpressionValidator></td>
        </tr>
        <tr>
            <td style="width: 106px">
                传真：</td>
            <td style="width: 91px; text-align: left">
                <asp:TextBox ID="txtFax" runat="server" ForeColor="#404040"></asp:TextBox>
                </td>
                    <td style="text-align:left;"><asp:RegularExpressionValidator ID="REValidatorFax" runat="server" ControlToValidate="txtFax"
                    ErrorMessage="*" ValidationExpression="^(0[0-9]{2,3}\-)?([2-9][0-9]{6,7})+(\-[0-9]{1,4})?$">区号-号码</asp:RegularExpressionValidator></td>
        </tr>
        <tr>
            <td style="width: 106px">
                备注：</td>
            <td style="width: 91px; text-align: left">
                <asp:TextBox ID="txtNode" runat="server" ForeColor="#404040"></asp:TextBox></td>
        </tr>
        <tr>
            <td style="width: 106px">
                <asp:Label ID="labCustomGrade" runat="server" Text="客户积分" Visible="False"></asp:Label></td>
            <td style="width: 91px; text-align: left">
                <asp:TextBox ID="txtCustomGrade" runat="server" Visible="False" ForeColor="#404040"></asp:TextBox></td>
        </tr>
        <tr>
            <td colspan="2" style="height: 24px">
                <asp:Button ID="btnModify" runat="server" OnClick="btnModify_Click" Text="保存" ForeColor="#404040" />
                <asp:Button ID="btnReset" runat="server" OnClick="btnReset_Click" Text="重置" ForeColor="#404040" /></td>
        </tr>
    </table>
</asp:Content>